/*
 * @Author: gitee 1758024667@qq.com
 * @Date: 2023-02-28 16:05:55
 * @LastEditors: gitee 1758024667@qq.com
 * @LastEditTime: 2023-03-07 01:13:28
 * @FilePath: \parking-lot-management\src\api\conpon.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import request from '@/utils/request'

// 根据条件查询
export function queryByConForPage(data) {
  return request({
    headers: { 'Content-Type': 'application/json' },
    method: 'post',
    url: '/parking/coupon/queryByConForPage',
    data
  })
}

// 根据id删除
export function deleteById(data) {
  return request({
    headers: { 'Content-Type': 'application/json' },
    method: 'post',
    url: '/parking/coupon/deleteById?couponId=' + data,
    data
  })
}

// 添加
export function insertCoupon(data) {
  return request({
    headers: { 'Content-Type': 'application/json' },
    method: 'post',
    url: '/parking/coupon/insertCoupon',
    data
  })
}

// 修改
export function UpdateCoupon(data) {
  return request({
    headers: { 'Content-Type': 'application/json' },
    method: 'post',
    url: '/parking/coupon/UpdateCoupon',
    data
  })
}
